package com.ty.test;

import com.ty.mvc.ResponseBody;
import com.ty.mvc.ResponseView;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @author 田野
 */
public class UserController {
    @ResponseBody("/login.do")
    public String login(HttpServletRequest request, HttpServletResponse response) {
        return "login success";
    }

    @ResponseView("/register.do")
    public String register(HttpServletRequest request, HttpServletResponse response) {
        return "success.jsp";
    }

}
